package Homework5;

public class Fruitjuice extends Softdrinks{
    private double juicecontent;

    public double getJuicecontent() {
        return juicecontent;
    }

    public void setJuicecontent(double juicecontent) {
        this.juicecontent = juicecontent;
    }

    public Fruitjuice(String brand, double sugarcontent, double juicecontent){
        super(brand, sugarcontent);
        this.juicecontent = juicecontent;
    }
    @Override
    public String advertisement(){
        return "This product contains sugar and juice.";
    }
    @Override
    public String component(){
        return "sugarcontent: " + getSugarcontent() + " " +
                "gram juicecontent: " + getJuicecontent() + "% ";
    }
}
